#-------------------------------------------------
#
# Project created by QtCreator 2016-11-29T16:04:24
#
#-------------------------------------------------

TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

unix:INCLUDEPATH += /usr/include/mysql \
                    /usr/include/mysql++

SOURCES += \
    src/main.cpp \
    src/server.cpp \
    src/settingwithxml.cpp \
    src/settingimpl.cpp \
    src/setting.cpp \
    src/event.cpp \
    src/netreadcompleteevent.cpp \
    src/netwritecompleteevent.cpp \
    src/timerevent.cpp \
    src/netdisconnectevent.cpp \
    src/networkassist.cpp \
    src/databaseassist.cpp \
    src/eventqueue.cpp \
    src/eventdispatcher.cpp \
    src/eventfactory.cpp

HEADERS += \
    src/server.h \
    src/room_global.h \
    src/settingwithxml.h \
    src/settingimpl.h \
    src/setting.h \
    src/datatype.h \
    src/event.h \
    src/netreadcompleteevent.h \
    src/netwritecompleteevent.h \
    src/timerevent.h \
    src/netdisconnectevent.h \
    src/networkassist.h \
    src/databaseassist.h \
    src/eventqueue.h \
    src/eventdispatcher.h \
    src/nmdefs.h \
    src/eventfactory.h

DISTFILES += \
    ../LICENSE \
    ../README.md

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../bin/ -lcore
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../bin/ -lcore
else:unix: LIBS +=  -L$$PWD/../bin/ \
                    -lnetwork \
                    -lcore \
                    -lmysqlpp \
                    -lboost_system \
                    -lboost_filesystem \
                    -lboost_log \
                    -lboost_log_setup \
                    -lboost_thread \
                    -lpthread

